import { defHttp } from "@/utils/http";

// ERP 药品仓库API
export const drugWhsApi = {
	// 获得药品仓库分页
	drugWhsList: async (params: any) => {
		return await defHttp.get({ url: `/whs/drug-whs/page`, params });
	},
	// 新增药品仓库
	drugWhsCreate: async (data: any) => {
		return await defHttp.post({ url: `/whs/drug-whs/create`, data });
	},

	// 修改药品仓库
	drugWhsUpdate: async (data: any) => {
		return await defHttp.put({ url: `/whs/drug-whs/update`, data });
	},

	// 删除药品仓库
	drugWhsDelete: async (id: number) => {
		return await defHttp.delete({ url: `/whs/drug-whs/delete?id=` + id });
	}
};
